<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>多维数组</title>
</head>
<body>
    
<script>

    {   
        // 多维数组 扁平化
        let ary = [[1,2,3],[4,5],6,7,8];
        let arr = ary.toString().split(',');
        console.log(arr.map(Number));
    }

</script>

</body>
</html>